package com.xiaok.netty.server.other;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @Classname RemindRunner
 * @Description 项目启动提醒类
 * @Date 2020/10/7 22:16
 * @Created by xiaok
 */
@Component
@Order(1) //越小优先级越高
public class RemindRunner implements CommandLineRunner {
    public Logger log = LoggerFactory.getLogger(this.getClass());
    @Override
    public void run(String... args) throws Exception {
        log.info("打开监控Url：http://localhost:10003/monitor.do");
        log.info("MyCommandRunner1....run............");
    }
}
